package mviewer.renderer.software.shader;

import java.awt.Color;
import mviewer.renderer.software.interfaces.ILighting;
import java.awt.Graphics;
import java.awt.Polygon;
import mviewer.renderer.software.interfaces.IBuffer;
import mviewer.renderer.software.interfaces.IShader;
import mviewer.types.IPolygon;
import mviewer.types.IVector;

public class WireframeShader implements IShader {

	@Override
	public void drawPolygon(Graphics g, IPolygon p3, Polygon p2
			, ILighting light, IBuffer buffer) {
		IVector c = p3.getMaterial().getAmbientColor();
		g.setColor(new Color(c.getX(), c.getY(), c.getZ()));
		g.drawPolygon(p2);
	}
}
